<template>
  <div class="page">
    <h3>表单录入</h3>
    <createForm class="form" :pushFormData="pushFormData" />
  </div>
</template>

<script>
import createForm from '@/components/createForm';
export default {
  name: 'Table',
  components: {
    createForm,
  },
  methods: {
    pushFormData(data) {
      this.showTopMessage( { type: 'success', message: data.name + ' 提交成功' })
    },
  },
};
</script>

<style lang="less" scoped>
.page {
  box-sizing: border-box;
  padding: 0 20px;
}
.form {
  width: 30%;
  min-width: 420px;
}
</style>
